package com.company.service;


import java.util.Objects;

public class Test {
    public int id;
    public int age;
    public String name;
    public Test(int id,int age,String name){

        this.id = id;
        this.age = age;
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Test test = (Test) o;
        return id == test.id &&
                age == test.age &&
                Objects.equals(name, test.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, age, name);
    }
}
